#ifndef ELEMENT_H_INCLUDED
#define ELEMENT_H_INCLUDED

#define MAX_SIZE 255

/* 布尔值 */
#define TRUE 1
#define FALSE 0

/* 状态标识 */
#define STATE_OK 1
#define STATE_FAIL -1

typedef int State;

#include <stdio.h>
#include <stdlib.h>
#include <malloc.h>



typedef struct {
    int id;
    char *name;
} ElementType;

typedef struct {
    /* 也可以定义为: ElementType *base */
    ElementType data[MAX_SIZE];
    /* 队头指针 */
    int front;
    /* 队尾指针 */
    int rear;
    /* 队列长度 */
    int length;
} SeqQueue;





#endif // ELEMENT_H_INCLUDED
